using Godot;
using System;

public partial class LoginInView : WindowBase
{
    private Button beginBtn;
    public override void init()
    {
        base.init();
        this.beginBtn = GetNode<Button>("beginBtn");
        this.beginBtn.Pressed += this.onClickBtn;

    }


    private void onClickBtn()
    {
        GD.Print("进入游戏主场景");
        EventParams e = new EventParams();
        e.paramDict.Add("sceneId", SceneId.GameScene01);
        EventManager.getInstance().dispatchEvent(EventType.EVENT_CHANGE_SCENE, e);
        //SceneManager.getInstance().enterScene(SceneId.GameScene01);

    }

}
